package Transformers;

import org.joda.time.LocalTime;
import org.uqbar.arena.bindings.Transformer;


public class IntegerToLocalDateTransformer implements Transformer<LocalTime, Integer> {

	@Override
    public LocalTime viewToModel(Integer valueFromView) {
            return new LocalTime(valueFromView);
    }

    @Override
    public Integer modelToView(LocalTime valueFromModel) {
            return valueFromModel.getHourOfDay();
    }

    @Override
    public Class<LocalTime> getModelType() {
            // TODO Auto-generated method stub
            return null;
    }

    @Override
    public Class<Integer> getViewType() {
            // TODO Auto-generated method stub
            return null;
    }

	
}
